/**
 * @file cloud_mutual.h
 * @author your name (you@domain.com)
 * @brief
 * @version 0.1
 * @date 2023-12-29
 *
 * @copyright Copyright (c) 2023
 *
*/
#ifndef CLOUD_MUTUAL_H
#define CLOUD_MUTUAL_H
#include <stdint.h>
#include <stdbool.h>
#include "aiio_protocol_comm.h"

typedef struct
{
    char* mqtt_host;                /*!< The ip address or doman of  remote service*/
    char* device_token;             /*!< Activaty information，it is given from cloud by app*/
    uint16_t mqtt_port;             /*!< The port number of remote service*/
    aiio_wifi_info_t* wifi_info;        /*!< The information of wifi*/
}aiio_cloud_receive_t;
extern aiio_cloud_receive_t cloud_data_s;
void cloudConnectInit(int activity, aiio_cloud_receive_t* cloud_data);
void cloudConnectDeinit(void);
void cloudPublishPayload(char* payload);
#endif